import Vue from 'vue'
import Router from 'vue-router'


Vue.use(Router)

// export default router;
// let router = new Router({
  export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: ()=>import("../components/all/login"),
     

    },
//why100
{
  path: '/allmain',
  name: 'Allmain',
  component: ()=>import("../components/all/allmain"),
  children: [
     // -----------------------------------------------首页
    {
      path: '/home',
      component: () => import('../components/all/home.vue'),
      name: 'Home',
    },
    // -----------------------------------------------系统
    //账号管理
    {
      path: '/systemuser',
      component: () => import('../components/system/systemuser.vue'),
      name: 'Systemuser',
    },
    //角色管理
    {
      path: '/systemrole',
      component: () => import('../components/system/systemrole.vue'),
      name: 'Systemrole',
    },
    //仓库管理
    {
      path: '/warehouse',
      component: () => import('../components/system/warehouse.vue'),
      name: 'Warehouse',
    },
    //任务导出
    {
      path: '/exporting',
      component: () => import('../components/system/exporting.vue'),
      name: 'Exporting',
    },
    
   
    //-----------------------------------------------仓库
    //新增入库单
    {
      path: '/addin',
      component: () => import('../components/depot/addin.vue'),
      name: 'Addin',
    },
    //新增出库单
    {
      path: '/addout',
      component: () => import('../components/depot/addout.vue'),
      name: 'Addout',
    },
    //通品详情
    {
      path: '/detailall',
      component: () => import('../components/depot/Detailall.vue'),
      name: 'Detailall',
    },
    //库存详情
    {
      path: '/detaildepot',
      component: () => import('../components/depot/detaildepot.vue'),
      name: 'Detaildepot',
    },
    //入库单详情
    {
      path: '/detailin',
      component: () => import('../components/depot/detailin.vue'),
      name: 'Detailin',
    },
    //出库单详情
    {
      path: '/detailout',
      component: () => import('../components/depot/detailout.vue'),
      name: 'Detailout',
    },
    //单品详情
    {
      path: '/detailsingle',
      component: () => import('../components/depot/detailsingle.vue'),
      name: 'Detailsingle',
    },
    //-----------------------------------------------采购
    //新增采购单
    {
      path: '/addbuy',
      component: () => import('../components/buy/addbuy.vue'),
      name: 'Addbuy',
    },
    //新增需求单
    {
      path: '/addneed',
      component: () => import('../components/buy/addneed.vue'),
      name: 'Addneed',
    },
    //需求单分配
    {
      path: '/assignmentneed',
      component: () => import('../components/buy/assignmentneed.vue'),
      name: 'Assignmentneed',
    },
    //需求单分配详情
    {
      path: '/detailassignmentneed',
      component: () => import('../components/buy/detailassignmentneed.vue'),
      name: 'Detailassignmentneed',
    },
    //采购单详情
    {
      path: '/detailbuy',
      component: () => import('../components/buy/detailbuy.vue'),
      name: 'Detailbuy',
    },
    //需求单详情
    {
      path: '/detailneed',
      component: () => import('../components/buy/detailneed.vue'),
      name: 'Detailneed',
    },
     //-----------------------------------------------销售
    //新增选货单
    {
      path: '/addchoose',
      component: () => import('../components/sale/addchoose.vue'),
      name: 'Addchoose',
    },
    //新增定金结算
    {
      path: '/adddeposit',
      component: () => import('../components/sale/adddeposit.vue'),
      name: 'Adddeposit',
    },
    //新增打包单
    {
      path: '/addpack',
      component: () => import('../components/sale/addpack.vue'),
      name: 'Addpack',
    },
    //新增尾款结算
    {
      path: '/addtail',
      component: () => import('../components/sale/addtail.vue'),
      name: 'Addctail',
    },
    //选货单详情
    {
      path: '/detailchoose',
      component: () => import('../components/sale/detailchoose.vue'),
      name: 'Detailchoose',
    },
    //定金结算详情
    {
      path: '/detaildeposit',
      component: () => import('../components/sale/detaildeposit.vue'),
      name: 'Detaildeposit',
    },
    //打包单详情
    {
      path: '/detailpack',
      component: () => import('../components/sale/detailpack.vue'),
      name: 'Detailpack',
    },
    //尾款结算详情
    {
      path: '/detailtail',
      component: () => import('../components/sale/detailtail.vue'),
      name: 'Detailtail',
    },
  //-----------------------------------------------财务
    //客户充值管理
    {
      path: '/addmoney',
      component: () => import('../components/finance/addmoney.vue'),
      name: 'Addmoney',
    },
    //客户账户管理
    {
      path: '/account',
      component: () => import('../components/finance/account.vue'),
      name: 'Account',
    },
    //客户账单管理
    {
      path: '/item',
      component: () => import('../components/finance/item.vue'),
      name: 'Item',
    },
     //-----------------------------------------------产品
    //产品管理
    {
      path: '/managergoods',
      component: () => import('../components/goods/managergoods.vue'),
      name: 'Managergoods',
    },
    //关注产品
    {
      path: '/concergoods',
      component: () => import('../components/goods/concergoods.vue'),
      name: 'Concergoods',
    },
    //购买定价
    {
      path: '/buyprice',
      component: () => import('../components/goods/buyprice.vue'),
      name: 'Buyprice',
    },
    //销售定价
    {
      path: '/saleprice',
      component: () => import('../components/goods/saleprice.vue'),
      name: 'Saleprice',
    },
      //-----------------------------------------------合作
    //客户管理
    {
      path: '/client',
      component: () => import('../components/co/client.vue'),
      name: 'Client',
    },
    //供应商管理
    {
      path: '/vendor',
      component: () => import('../components/co/vendor.vue'),
      name: 'Client',
    },
    //关注客户
    {
      path: '/concerclient',
      component: () => import('../components/co/concerclient.vue'),
      name: 'Concerclient',
    },
  //-----------------------------------------------基础物料
    //区域管理
    {
      path: '/area',
      component: () => import('../components/base/area.vue'),
      name: 'Area',
    },
    //物料分类
    {
      path: '/meter',
      component: () => import('../components/base/meter.vue'),
      name: 'Meter',
    },
    //品类管理
    {
      path: '/category',
      component: () => import('../components/base/category.vue'),
      name: 'Category',
    },
    //产品线管理
    {
      path: '/producter',
      component: () => import('../components/base/producter.vue'),
      name: 'Producter',
    },
    //产品成色
    {
      path: '/purity',
      component: () => import('../components/base/purity.vue'),
      name: 'Purity',
    },
   //-----------------------------------------------会员管理
   //会员管理
   {
    path: '/managermember',
    component: () => import('../components/member/managermember.vue'),
    name: 'Managermember',
  },





















































































































































































































// 财务管理
{
  path: '/addTopUp', // 添加充值单
  component: () => import('../components/finance/addTopUp.vue')
},
{
  path: '/addClient', // 添加客户
  component: () => import('../components/co/addClient.vue')
},
{
  path: '/addVendor', // 添加供应商
  component: () => import('../components/co/addVendor.vue')
}




















  ]
},


  ],
  mode: "history" //设置路由的工作模式，history 不带#
});

